package com.dragon.blog.bean.mybatisConfig.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @INFO:
 * @AUTHOR NAIZUI
 * @CLASSNAME IMyBatisConfig.java
 * @CREATETIME 2021-09-23 19:50
 */
@Configuration
public class IMyBatisConfig {

    /**
     * 分页插件
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }
}
